 function rand(n=10,t=0){
    let arr=[]
    for(let i=0;i<n;i++){
      let s= (Math.random()*n).toFixed(t)-0
      arr.push(s)
    }
    return arr
}

 function stime(fn,...arg){
    let start=new Date()
    fn(...arg)
    let end= new Date()

    console.log(end-start)
}

module.exports={rand,stime}

